package com.wyk.springbootdemo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;

@Data
public class User {
    private String id;
    @JsonProperty("username")
    private  String name;
    @JsonIgnore
    private String pwd;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date brithday;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer age;
   }
